﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Finance.Web.Models
{
    public class PercentAmountDependViewModel
    {
        public PercentAmountDependViewModel(PercentAmountDepend depend)
        {
            this.DepCode = depend.DepCode;
            this.Code = depend.Code;
            this.MinAmount = depend.MinAmount;
            this.MaxAmount = depend.MaxAmount;
            this.Percent = depend.Percent;
        }

        public int? DepCode { get; set; }

        public double? MinAmount { get; set; }

        public int Code { get; set; }

        public double? MaxAmount { get; set; }

        public double? Percent { get; set; }
    }

    public partial class PercentAmountDepend
    {
        public PercentAmountDepend()
        {
        }

        public Nullable<int> DepCode { get; set; }
        public Nullable<double> MinAmount { get; set; }
        public Nullable<double> MaxAmount { get; set; }

        public Nullable<double> Percent { get; set; }

        public virtual Deposit Deposit { get; set; }

        public int Code { get; set; }
    }
}